/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cl.web.managedbeans;

import cl.web.jsf.util.Message;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import org.apache.log4j.Logger;

/**
 *
 * @author Vogel
 */
@ManagedBean(name="avisoMBean")
@SessionScoped
public class AvisoMBean implements Serializable{

     private Message message;
     private static Logger LOG = Logger.getLogger(AvisoMBean.class);
     static final long serialVersionUID = 1L;
     
    /**
     * Creates a new instance of AvisoMBean
     */
    public AvisoMBean() {
    }
    
    public void close(){
        LOG.info("Entro al Listener en avisoMBean");
        this.message.setVisible(false);
    }
     public Message getMessage() {
        return message;
    }

    public void setMessage(Message message) {
        this.message = message;
    }
}
